package com.example.wxtest;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;

//@SpringBootApplication
//public class WxTestApplication {
//
//    public static void main(String[] args) {
//        SpringApplication.run(WxTestApplication.class, args);
//    }
//
//}
// war
@SpringBootApplication
@EnableAsync//多线程处理
public class WxTestApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(WxTestApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(WxTestApplication.class, args);
    }
}

